package com.example.demo.src;

/**
 * Created by Easettle
 * Date:2021-01-03 13:49
 * Email:easettle@qq.com
 */
public class MemberService {

    public void login(String loginName,String loginPass) {
        Handler validateHandler = new ValidateHandler();
        Handler loginHandler = new LoginHandler();
        Handler authHandler = new AuthHandler();
        validateHandler.next(loginHandler);
        loginHandler.next(authHandler);
        validateHandler.doHandler(new Member(loginName,loginPass));
    }
}
